/*<!--banner-Slider-->*/
// You can also use "$(window).load(function() {"
$(function () {
  // Slideshow 4
  $("#slider4").ResponsiveSlides({
auto: true,
pager: true,
nav:false,
speed: 500,
namespace: "callbacks",
before: function () {
  $('.events').append("<li>before event fired.</li>");
},
after: function () {
  $('.events').append("<li>after event fired.</li>");
}
  });
});
/*<!--start-smooth-scrolling-->*/
$(document).ready(function() {
	/*
	var defaults = {
		containerID: 'toTop', // fading element id
		containerHoverID: 'toTopHover', // fading element hover id
		scrollSpeed: 1200,
		easingType: 'linear' 
	};
	*/
	
	$().UItoTop({ easingType: 'easeOutQuart' });
	
});
/*<!--End-slider-script-->*/
$(function(){
  SyntaxHighlighter.all();
});
$(window).load(function(){
  $('.flexslider').flexslider({
	animation: "slide",
	start: function(slider){
	  $('body').removeClass('loading');
	}
  });
});
/*<!-- script for menu -->*/
$( "span.menu" ).click(function() {
  $( ".top-menu" ).slideToggle( "slow", function() {
	// Animation complete.
  });
});
/*<!-- script for menu -->*/
$(document).ready(function() {
var navoffeset=$(".header-bottom").offset().top;
$(window).scroll(function(){
var scrollpos=$(window).scrollTop(); 
if(scrollpos >=navoffeset){
	$(".header-bottom").addClass("fixed");
}else{
	$(".header-bottom").removeClass("fixed");
}
});
});
/*<!--/script-->*/
jQuery(document).ready(function($) {
	$(".scroll").click(function(event){		
	event.preventDefault();
	$('html,body').animate({scrollTop:$(this.hash).offset().top},900);
	});
});
